<link rel="stylesheet" href="/assets/css/m.css"/>
<div class="tpl-portlet-components" xmlns:th="http://www.thymeleaf.org">
    <div class="portlet-title">
        <div class="caption font-green bold">
            保存语言
        </div>
    </div>
    <div class="tpl-block ">
        <div class="am-g tpl-amazeui-form">
            <div class="am-u-sm-12 am-u-md-9">
                <form class="am-form am-form-horizontal" name="movieLanguageForm">
                    <input type="hidden" name="languageId" th:value="${movieLanguage==null?0:movieLanguage.id}">
                    <div class="am-form-group">
                        <label for="movieLanguageFormId" class="am-u-sm-3 am-form-label">电影语言 / MovieLanguage</label>
                        <div class="am-u-sm-9">
                            <input type="text" id="movieLanguageFormId" name="language" placeholder="电影语言"
                                   th:value="${movieLanguage == null ? '英语' : movieLanguage.language}">
                            <small>新增加一个电影语言种类</small>
                            <div class="span-exist-tip"><span class="label label-sm label-danger">语言已经存在!</span>
                            </div>
                        </div>
                        <div class="am-form-group">
                            <div class="am-u-sm-9 am-u-sm-push-3">
                                <button type="button" onclick="saveMovieLanguage()" class="am-btn am-btn-primary">保存语言
                                </button>
                            </div>
                        </div>
                </form>
            </div>
        </div>
    </div>

</div>
